package day0428.com.ch16threeLayer.service;/**
 * 作者：wangmaokang
 * 日期: 2021/4/28 9:59
 * 描述:
 */

import day0428.com.ch16threeLayer.entity.User;

import java.util.List;

/**
 *
 *@description:
 *@author: wangmaokang
 *@email：449086935@qq.com
 *@time: 2021/4/28 9:59
 *
 */
public interface IUserService {

   User login(String name, String passWord);

   User getUserById(int id) throws Exception;

   List<User> getAllUsers() throws Exception;

   void addUser(User user) throws Exception;

   void deleteUserById(int id) throws Exception;

}
